<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Shout-On-Air</title>
		<meta name="author" content="Courtenay Probert" />

		<link rel="stylesheet" href="stylesheets/radio.css" type="text/css" media="all">
		<link rel="stylesheet" href="stylesheets/jquery.twitter.css" type="text/css" media="all">
		<link type="text/css" href="stylesheets/themes/base/ui.all.css" rel="stylesheet" />
		
		<script type="text/javascript" src="lib/air/AIRAliases.js"></script>
        <script type="application/x-shockwave-flash" src="lib/air/servicemonitor.swf"></script>
		
		<script type="text/javascript" src="lib/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="lib/jquery.timers-1.1.2.js"></script>
		<script type="text/javascript" src="lib/json2.js"></script>
		<script type="text/javascript" src="lib/blogger.js"></script>
		<script type="text/javascript" src="lib/jquery.twitter.js"></script>
		<script type="text/javascript" src="lib/ui.core.js"></script>
		<script type="text/javascript" src="lib/ui.slider.js"></script>
		<script type="text/javascript" src="lib/jquery.cycle.all.min.js"></script>
		<script type="text/javascript" src="lib/jquery.template.js"></script>
		
		<script type="text/javascript" src="scripts/adrotator.js"></script>
		<script type="text/javascript" src="scripts/utils.js"></script>
		<script type="text/javascript" src="scripts/sys-tray.js"></script>
		<script type="text/javascript" src="scripts/radio.player.js"></script>
		<script type="text/javascript" src="scripts/radio.ui.js"></script>
		<script type="text/javascript" src="scripts/netmon.js"></script>
		<script type="text/javascript" src="scripts/prefs.js"></script>
		<script type="text/javascript">
			air.SoundMixer.soundTransform = new air.SoundTransform(prefs.startingvol(), 0); //Set global sound level to 80%
			prefs.init(function(){
				SetUpSysTray();
				$(document).ready(function() {
					ui.init();  //Setup UserInterface
					
					//Setup banners
					if (prefs.adserver != null) {
						adrotator.xmlfeed = prefs.adserver;
						adrotator.init();
					}
					
					//Setup streamplayer
					shoutcastradio.debug = false; //prefs.debug;
					shoutcastradio.type = prefs.streamtype;
					shoutcastradio.toggletime = prefs.toggletime;
					shoutcastradio.buffertime = prefs.buffertime;
					shoutcastradio.init(prefs.streamurl, prefs.streamport, prefs.streamfolder);
					
					//Setup Network monitor
					netmon.init();
					netmon.onNetworkChange(true); //Check net and play if available;
                    
                    $("#version").html(prefs.version);
				});
			});
		</script>
	</head>

	<body>
		<div id="header"></div>
		
		<div id="twitter"></div>
		
		<div id="footer">
			<div id="player">
				<div style="float: left; padding-bottom: 10px;">
					<a id="playControl" href="#"><img src="images/err.png" border="0"></a>
				</div>
				<div id="slider" style="margin: 16px 5px 0 60px;"></div>
			</div>
            <div id="copyright"><a href="http://shout-on-air.probert.me.uk/">Player v<span id="version"></span> by: Courtenay Probert</a></div>
		</div>
		
		<div id="adspace" align="center"></div>
		
	</body>
</html>